import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'

Vue.use(Vuex)
const state = {
  // 个人信息
  version: require('vue/package.json').version,
  userInfo: {
    name: '',
    imgUrl: ''
  }
}
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
